package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * 售后目标2(厂家)
 * @author 龚海千
 *
 */
@Entity
public class AfterSaleTarget2 {
	private Integer id;
	private Integer years;
	private Integer month;
	private Date beginDate;//起始日期
	private Date endDate;//起始日期
	private AfterSaleTarget aftersaletarget;
	//厂家
	private Float oil;//厂家油类目标(元)
	private Integer tyre;//厂家轮胎目标
	private Integer keep;//厂家养护品目标
	private Integer continueInsurance;//厂家续保目标
	private Integer maintain;//厂家保养套餐目标
	private Integer cSI;//厂家CSI目标
	private Float part;//厂家零件目标（元）
	private Integer oilPaint;//厂家漆类目标
	private Integer boutique;//厂家精品目标
	private Integer lengthenInsurance;//厂家延保目标
	private Integer factoryLookTarget;//厂家厂家现场评核目标
	private Integer theThirdLookTarget;//厂家第三方评核目标
	//自店
	private Float myOil;//油液类目标（元）
	private Integer myTyre;//轮胎目标
	private Integer myKeep;//养护品目标
	private Integer myContinueInsurance;//续保目标
	private Integer myMaintain;//保养套餐目标
	private Integer myCSI;//CSI目标
	private Integer targetPeople;//目标人员
	private Float myPart;//零件目标（元）
	private Integer myOilPaint;//漆类目标
	private Integer myBoutique;//精品目标
	private Integer myLengthenInsurance;//延保目标
	private Integer inFactoryNumber;//进厂台次
	
	@Id
	@GeneratedValue
	@JsonIgnore
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getYears() {
		return years;
	}
	public void setYears(Integer years) {
		this.years = years;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Float getOil() {
		return oil;
	}
	public void setOil(Float oil) {
		this.oil = oil;
	}
	public Integer getTyre() {
		return tyre;
	}
	public void setTyre(Integer tyre) {
		this.tyre = tyre;
	}
	public Integer getKeep() {
		return keep;
	}
	public void setKeep(Integer keep) {
		this.keep = keep;
	}
	public Integer getContinueInsurance() {
		return continueInsurance;
	}
	public void setContinueInsurance(Integer continueInsurance) {
		this.continueInsurance = continueInsurance;
	}
	public Integer getMaintain() {
		return maintain;
	}
	public void setMaintain(Integer maintain) {
		this.maintain = maintain;
	}
	public Integer getcSI() {
		return cSI;
	}
	public void setcSI(Integer cSI) {
		this.cSI = cSI;
	}

	public Integer getOilPaint() {
		return oilPaint;
	}
	public void setOilPaint(Integer oilPaint) {
		this.oilPaint = oilPaint;
	}
	public Integer getBoutique() {
		return boutique;
	}
	public void setBoutique(Integer boutique) {
		this.boutique = boutique;
	}
	public Integer getLengthenInsurance() {
		return lengthenInsurance;
	}
	public void setLengthenInsurance(Integer lengthenInsurance) {
		this.lengthenInsurance = lengthenInsurance;
	}
	public Integer getFactoryLookTarget() {
		return factoryLookTarget;
	}
	public void setFactoryLookTarget(Integer factoryLookTarget) {
		this.factoryLookTarget = factoryLookTarget;
	}
	public Integer getTheThirdLookTarget() {
		return theThirdLookTarget;
	}
	public void setTheThirdLookTarget(Integer theThirdLookTarget) {
		this.theThirdLookTarget = theThirdLookTarget;
	}

	public Integer getMyTyre() {
		return myTyre;
	}
	public void setMyTyre(Integer myTyre) {
		this.myTyre = myTyre;
	}
	public Integer getMyKeep() {
		return myKeep;
	}
	public void setMyKeep(Integer myKeep) {
		this.myKeep = myKeep;
	}
	public Integer getMyContinueInsurance() {
		return myContinueInsurance;
	}
	public void setMyContinueInsurance(Integer myContinueInsurance) {
		this.myContinueInsurance = myContinueInsurance;
	}
	public Integer getMyMaintain() {
		return myMaintain;
	}
	public void setMyMaintain(Integer myMaintain) {
		this.myMaintain = myMaintain;
	}
	public Integer getMyCSI() {
		return myCSI;
	}
	public void setMyCSI(Integer myCSI) {
		this.myCSI = myCSI;
	}
	public Integer getTargetPeople() {
		return targetPeople;
	}
	public void setTargetPeople(Integer targetPeople) {
		this.targetPeople = targetPeople;
	}

	public Integer getMyOilPaint() {
		return myOilPaint;
	}
	public void setMyOilPaint(Integer myOilPaint) {
		this.myOilPaint = myOilPaint;
	}
	public Integer getMyBoutique() {
		return myBoutique;
	}
	public void setMyBoutique(Integer myBoutique) {
		this.myBoutique = myBoutique;
	}
	public Integer getMyLengthenInsurance() {
		return myLengthenInsurance;
	}
	public void setMyLengthenInsurance(Integer myLengthenInsurance) {
		this.myLengthenInsurance = myLengthenInsurance;
	}
	public Integer getInFactoryNumber() {
		return inFactoryNumber;
	}
	public void setInFactoryNumber(Integer inFactoryNumber) {
		this.inFactoryNumber = inFactoryNumber;
	}
	public Float getPart() {
		return part;
	}
	public void setPart(Float part) {
		this.part = part;
	}
	public Float getMyOil() {
		return myOil;
	}
	public void setMyOil(Float myOil) {
		this.myOil = myOil;
	}
	public Float getMyPart() {
		return myPart;
	}
	public void setMyPart(Float myPart) {
		this.myPart = myPart;
	}
	@ManyToOne
	public AfterSaleTarget getAftersaletarget() {
		return aftersaletarget;
	}
	public void setAftersaletarget(AfterSaleTarget aftersaletarget) {
		this.aftersaletarget = aftersaletarget;
	}
	
	
	
}
